Add ability to use nerdfont.vim plugin to display devicons#68
Open
theunraveler wants to merge 1 commit intobagrat:masterfrom
Open
Add ability to use nerdfont.vim plugin to display devicons#68theunraveler wants to merge 1 commit intobagrat:masterfrom
nerdfont.vim plugin to display devicons#68theunraveler wants to merge 1 commit intobagrat:masterfrom
Conversation
d4a47f3 to
c11de0c
Compare
|
It doesn't seem to work on my computer. if &compatible
set nocompatible " Be iMproved
endif
" Disable Vim's native pack feature
set packpath=
set laststatus=2 " 显示 status line
set showtabline=2 " 显示 tabs line
let g:buffet_show_index = 1
let g:buffet_powerline_separators = 1
let g:buffet_use_devicons = 1
set runtimepath+=~/.cache/vim/dein/repos/github.com/lambdalisue/nerdfont.vim
set runtimepath+=~/.cache/vim/dein/repos/github.com/theunraveler/vim-buffet_nerdfont
filetype plugin indent on
syntax enable
set termguicolors
" Note: Make sure the function is defined before `vim-buffet` is loaded.
function! g:BuffetSetCustomColors()
" hi! BuffetTab cterm=NONE ctermbg=117 ctermfg=238 guibg=#8ac6f2 guifg=#444444
" hi! BuffetCurrentBuffer cterm=NONE ctermbg=119 ctermfg=8 guibg=#95e454 guifg=#000000
hi! BuffetTab cterm=NONE ctermbg=117 ctermfg=238 guibg=#a89984 guifg=#282828
hi! BuffetCurrentBuffer cterm=NONE ctermbg=119 ctermfg=8 guibg=#b8bb26 guifg=#282828
endfunction |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hello! First, thanks for developing this useful plugin.
I am already using the
nerdfont.vimplugin to display dev icons in thefern.vimfile browser. I thought it was a bit redundant to installvim-deviconsalso, so I changedvim-buffetto use either plugin.The change in this PR should be completely transparent to users of this plugin. The
g:buffet_use_deviconssetting should continue to function exactly how it currently does, and if you're usingvim-devicons, this plugin will still continue to pick that up by default.Oh also note that a consequence of this change is that the
vim-deviconsplugin no longer needs to be registered beforevim-buffet, since the function for generating devicons is lazily-loaded. So I updated that in the README too.Thanks!